Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rox-image

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rox-image

--- subtitle: 图片 group: General category: Component chinese: 图片 type: 基础元件 ---

  • 0.0.39
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
4
Weekly downloads
 
Created
Source

subtitle: 图片 group: General category: Component chinese: 图片 type: 基础元件

Image


API

  • 类似于web img标签

Image

属性说明类型默认值
source设置图片的 uri,格式{uri: '//img.alicdn.com/image.png'}object
style必须设置宽高,否则默认为0,{width: '100rem',height: '100rem'}object{width: '0',height: '0'}
resizeMode决定当组件尺寸和图片尺寸不成比例的时候如何调整图片的大小。stringcover

Keywords

FAQs

Package last updated on 28 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc